# managers.py
from django.db.models.query import QuerySet


class PostQuerySet(QuerySet):
	def public_posts(self):
		return self.filter(privacy='public')


PostManager = PostQuerySet.as_manager
